home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Programming Contest / MacHack Contest.sit / MacHack Contest / Problems Folder / Problem 05 - Database / Solution.h < prev    next >
MacBinary  |  1998-05-24  |  1.5 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun May 24 17:24:57 1998, modified Sun May 24 17:24:57 1998, creator 'CWIE', type ASCII, 895 bytes "Solution.h" , at 0x3ff 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 6f 6c 75 74 69 | 6f 6e 2e 68 00 00 00 00 |..Soluti|on.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 03 7f 00 | 00 01 9a b1 8e 40 a9 b1 |........|.....@..|
|00000060| 8e 40 a9 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.@......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a5 d9 00 00 |........|........|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 53 4f 4c 55 54 49 |#ifndef |__SOLUTI|
|00000090| 4f 4e 5f 48 5f 5f 0d 23 | 64 65 66 69 6e 65 20 5f |ON_H__.#|define _|
|000000a0| 5f 53 4f 4c 55 54 49 4f | 4e 5f 48 5f 5f 0d 0d 2f |_SOLUTIO|N_H__../|
|000000b0| 2f 20 44 6f 20 6e 6f 74 | 20 6d 6f 64 69 66 79 20 |/ Do not| modify |
|000000c0| 74 68 69 73 20 66 69 6c | 65 0d 0d 23 69 6e 63 6c |this fil|e..#incl|
|000000d0| 75 64 65 20 3c 4d 61 63 | 54 79 70 65 73 2e 68 3e |ude <Mac|Types.h>|
|000000e0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 46 69 6c 65 73 |.#includ|e <Files|
|000000f0| 2e 68 3e 0d 0d 23 69 66 | 64 65 66 20 5f 5f 63 70 |.h>..#if|def __cp|
|00000100| 6c 75 73 70 6c 75 73 0d | 65 78 74 65 72 6e 20 22 |lusplus.|extern "|
|00000110| 43 22 20 7b 0d 23 65 6e | 64 69 66 20 2f 2f 20 5f |C" {.#en|dif // _|
|00000120| 5f 63 70 6c 75 73 70 6c | 75 73 0d 0d 74 79 70 65 |_cpluspl|us..type|
|00000130| 64 65 66 20 48 61 6e 64 | 6c 65 20 53 74 72 69 6e |def Hand|le Strin|
|00000140| 67 73 48 61 6e 64 6c 65 | 3b 20 2f 2f 20 53 65 71 |gsHandle|; // Seq|
|00000150| 75 65 6e 63 65 20 6f 66 | 20 50 61 73 63 61 6c 20 |uence of| Pascal |
|00000160| 53 74 72 69 6e 67 73 20 | 70 61 63 6b 65 64 20 74 |Strings |packed t|
|00000170| 6f 67 65 74 68 65 72 0d | 74 79 70 65 64 65 66 20 |ogether.|typedef |
|00000180| 48 61 6e 64 6c 65 20 44 | 61 74 61 62 61 73 65 48 |Handle D|atabaseH|
|00000190| 61 6e 64 6c 65 3b 20 2f | 2f 20 4d 75 73 74 20 62 |andle; /|/ Must b|
|000001a0| 65 20 61 20 72 65 61 6c | 20 68 61 6e 64 6c 65 0d |e a real| handle.|
|000001b0| 09 0d 70 61 73 63 61 6c | 20 76 6f 69 64 20 44 61 |..pascal| void Da|
|000001c0| 74 61 62 61 73 65 49 6e | 69 74 28 20 44 61 74 61 |tabaseIn|it( Data|
|000001d0| 62 61 73 65 48 61 6e 64 | 6c 65 20 2a 64 61 74 61 |baseHand|le *data|
|000001e0| 62 61 73 65 2c 20 55 49 | 6e 74 33 32 20 66 69 65 |base, UI|nt32 fie|
|000001f0| 6c 64 5f 63 6f 75 6e 74 | 20 29 3b 0d 70 61 73 63 |ld_count| );.pasc|
|00000200| 61 6c 20 76 6f 69 64 20 | 44 61 74 61 62 61 73 65 |al void |Database|
|00000210| 41 64 64 45 6e 74 72 79 | 28 20 44 61 74 61 62 61 |AddEntry|( Databa|
|00000220| 73 65 48 61 6e 64 6c 65 | 20 64 61 74 61 62 61 73 |seHandle| databas|
|00000230| 65 2c 20 53 74 72 69 6e | 67 73 48 61 6e 64 6c 65 |e, Strin|gsHandle|
|00000240| 20 65 6e 74 72 79 20 29 | 3b 0d 70 61 73 63 61 6c | entry )|;.pascal|
|00000250| 20 76 6f 69 64 20 44 61 | 74 61 62 61 73 65 46 69 | void Da|tabaseFi|
|00000260| 6e 64 45 6e 74 72 79 28 | 20 44 61 74 61 62 61 73 |ndEntry(| Databas|
|00000270| 65 48 61 6e 64 6c 65 20 | 64 61 74 61 62 61 73 65 |eHandle |database|
|00000280| 2c 20 55 49 6e 74 33 32 | 20 66 69 65 6c 64 2c 20 |, UInt32| field, |
|00000290| 43 6f 6e 73 74 53 74 72 | 32 35 35 50 61 72 61 6d |ConstStr|255Param|
|000002a0| 20 6d 61 74 63 68 2c 20 | 53 74 72 69 6e 67 73 48 | match, |StringsH|
|000002b0| 61 6e 64 6c 65 20 2a 65 | 6e 74 72 79 20 29 3b 0d |andle *e|ntry );.|
|000002c0| 70 61 73 63 61 6c 20 76 | 6f 69 64 20 44 61 74 61 |pascal v|oid Data|
|000002d0| 62 61 73 65 44 65 6c 65 | 74 65 45 6e 74 72 79 28 |baseDele|teEntry(|
|000002e0| 20 44 61 74 61 62 61 73 | 65 48 61 6e 64 6c 65 20 | Databas|eHandle |
|000002f0| 64 61 74 61 62 61 73 65 | 2c 20 55 49 6e 74 33 32 |database|, UInt32|
|00000300| 20 66 69 65 6c 64 2c 20 | 43 6f 6e 73 74 53 74 72 | field, |ConstStr|
|00000310| 32 35 35 50 61 72 61 6d | 20 6d 61 74 63 68 20 29 |255Param| match )|
|00000320| 3b 0d 70 61 73 63 61 6c | 20 55 49 6e 74 33 32 20 |;.pascal| UInt32 |
|00000330| 44 61 74 61 62 61 73 65 | 43 6f 75 6e 74 28 20 44 |Database|Count( D|
|00000340| 61 74 61 62 61 73 65 48 | 61 6e 64 6c 65 20 64 61 |atabaseH|andle da|
|00000350| 74 61 62 61 73 65 20 29 | 3b 0d 70 61 73 63 61 6c |tabase )|;.pascal|
|00000360| 20 76 6f 69 64 20 44 61 | 74 61 62 61 73 65 47 65 | void Da|tabaseGe|
|00000370| 74 49 6e 64 45 6e 74 72 | 79 28 20 44 61 74 61 62 |tIndEntr|y( Datab|
|00000380| 61 73 65 48 61 6e 64 6c | 65 20 64 61 74 61 62 61 |aseHandl|e databa|
|00000390| 73 65 2c 20 55 49 6e 74 | 33 32 20 69 6e 64 65 78 |se, UInt|32 index|
|000003a0| 2c 20 53 74 72 69 6e 67 | 73 48 61 6e 64 6c 65 20 |, String|sHandle |
|000003b0| 2a 65 6e 74 72 79 20 29 | 3b 0d 0d 23 69 66 64 65 |*entry )|;..#ifde|
|000003c0| 66 20 5f 5f 63 70 6c 75 | 73 70 6c 75 73 0d 7d 0d |f __cplu|splus.}.|
|000003d0| 23 65 6e 64 69 66 20 2f | 2f 20 5f 5f 63 70 6c 75 |#endif /|/ __cplu|
|000003e0| 73 70 6c 75 73 0d 0d 23 | 65 6e 64 69 66 20 2f 2f |splus..#|endif //|
|000003f0| 20 5f 5f 53 4f 4c 55 54 | 49 4f 4e 5f 48 5f 5f 00 | __SOLUT|ION_H__.|
|00000400| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000410| 2b 30 38 30 30 31 35 3a | 35 35 3a 33 32 20 31 39 |+080015:|55:32 19|
|00000420| 39 38 00 00 00 00 00 00 | 00 00 b1 78 6a 77 00 00 |98......|...xjw..|
|00000430| 0a 53 6f 6c 75 74 69 6f | 6e 2e 68 4d 61 63 48 61 |.Solutio|n.hMacHa|
|00000440| 63 6b 20 43 6f 6e 74 65 | 73 74 31 2e 73 69 74 69 |ck Conte|st1.siti|
|00000450| 02 4a 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |.JPartSI|T!......|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 b1 b0 40 8d 00 00 | 00 00 00 00 01 9a 00 00 |....@...|........|
|00000480| 00 00 29 bc 7f 92 00 00 | 00 00 20 52 65 3a 20 46 |..).....|.. Re: F|
|00000490| 6f 6c 64 65 72 20 48 69 | 65 72 61 72 63 68 79 20 |older Hi|erarchy |
|000004a0| 44 75 70 6c 69 63 61 74 | 69 6f 6e 0d 00 00 00 00 |Duplicat|ion.....|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 04 36 35 37 a4 00 00 |........|..657...|
|000004d0| 00 00 00 00 00 00 00 00 | 00 01 be ab 00 00 05 f2 |........|........|
|000004e0| 00 00 02 90 02 07 31 32 | 2f 35 2f 39 38 34 30 30 |......12|/5/98400|
|000004f0| 30 32 31 3a 30 31 3a 35 | 36 20 31 39 39 38 00 00 |021:01:5|6 1998..|
|00000500| 00 00 00 48 00 0a 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 02 | 00 02 00 d0 00 1e 02 6a |........|.......j|
|00000530| 02 94 00 d0 00 1e 02 6a | 02 94 b1 8d fa 59 00 00 |.......j|.....Y..|
|00000540| 02 37 00 00 02 37 00 00 | 00 00 01 00 00 00 00 04 |.7...7..|........|
|00000550| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000560| 00 00 00 46 05 27 4a 3c | 41 00 00 00 00 1c 00 46 |...F.'J<|A......F|
|00000570| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000580| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000590| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+